package com.example.utils;

/**
 * 作者:xuSen
 * 日期2025/4/13 16:38
 */
public class Const {
    // jwt黑名单的键名
    public static final String JWT_BLACK_LIST = "jwt:blacklist";

    // 邮箱验证码相关键名前缀
    public final static String VERIFY_EMAIL_LIMIT = "verify:email:limit:";
    public final static String VERIFY_EMAIL_DATA = "verify:email:data:";

    // 过滤器的优先级常量
    public static final int ORDER_LIMIT = -101;
    public static final int ORDER_CORS = -102;

    // 请求频率限制相关键名前缀
    public static final String FLOW_LIMIT_COUNTER = "flow:limit:";
    public static final String FLOW_LIMIT_BLOCK = "flow:block:";

    // 请求属性的键名
    public static final String ATTR_USER_ID = "userId";
}

